----------------------
-- Timer class
----------------------

Timer = {}
Timer.__index = Timer

function Timer.new(target)
    local t = {}
    setmetatable(t, Timer)
    
    -- variables
    t.elapsed_time = 0.0
    t.target = target
    
    return t
end

----------------------
-- Set Target
---------------------
function Timer:setTarget(target)
    self.target = target
end

----------------------
-- Update function
----------------------
function Timer:update(dt)
    self.elapsed_time = self.elapsed_time + dt
end
